package com.wowoai.wallpaper.convert;

import com.wowoai.wallpaper.controller.vo.WallpaperVO;
import com.wowoai.wallpaper.entity.WallpaperEntity;
import com.wowoai.wallpaper.service.dto.WallpaperDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface WallpaperConvert {

    WallpaperConvert INS = Mappers.getMapper(WallpaperConvert.class);

    List<WallpaperDTO> entity2DTO(List<WallpaperEntity> wallpaperEntityList);

    List<WallpaperVO> dto2VO(List<WallpaperDTO> wallpaperDTOList);
}
